home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / ocxproxy.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.3 KB  |  49 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // OCXPROXY.H - Proxy class to host OCX in CBuilder's IDE
  3. //
  4. // $Revision:   1.0.1.0  $
  5. // $Date:   31 Jan 1998 14:11:38  $
  6. //
  7. // Copyright (c) 1998 Borland International
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef __OCXPROXY_H
  10. #define __OCXPROXY_H
  11.  
  12. #include <olectrls.hpp>
  13.  
  14. class DELPHICLASS TOCXProxy;
  15.  
  16. class TOCXProxy : public TOleControl
  17. {
  18. public:
  19.   __fastcall virtual TOCXProxy(Classes::TComponent* AOwner) : TOleControl(AOwner)
  20.   {}
  21.   __fastcall TOCXProxy(HWND ParentWindow) : TOleControl(ParentWindow) 
  22.   {}
  23.   __fastcall virtual ~TOCXProxy(void)
  24.   {}
  25.  
  26.   // Provide PUTREF style setter for standard property types
  27.   // NOTE: These simply invoke the PUT setters
  28.   //
  29.   void __fastcall _SetIUnknownProp(int index, _di_IUnknown const val)
  30.   {
  31.     TOleControl::SetIUnknownProp(index, val);
  32.   }
  33.   void __fastcall _SetIDispatchProp(int index, _di_IDispatch const val)
  34.   {
  35.     TOleControl::SetIDispatchProp(index, val);
  36.   }
  37.   void __fastcall _SetTFontProp(int index, Graphics::TFont* value)
  38.   {
  39.     TOleControl::SetTFontProp(index, value);
  40.   }
  41.   void __fastcall _SetTPictureProp(int index, Graphics::TPicture* value)
  42.   {
  43.     TOleControl::SetTPictureProp(index, value);
  44.   }
  45. };
  46.  
  47.  
  48. #endif    //    __OCXPROXY_H
  49.